#include <bits/stdc++.h>

using namespace std;
struct Student
{
    int C,M,E,A;
} stu;

int main_1012()
{
    unordered_map<string,Student> infos;
    char ID[7]={0};
    int N,M;
    scanf("%d %d",&N,&M);
    for (int i; i<N;++i )
    {
        scanf("%s %d %d %d",ID,&stu.C,&stu.M,&stu.E);
        stu.A=(int)round((stu.C+stu.M+stu.E)/3.0);

    }
	return 0;
}
